package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping("/403")
    public String  unauthorizedUrl(){
        return "403";
    }

    @RequestMapping("/exception")
    public String exceptionError(){
        return "exception";
    }


    @RequestMapping("/page/register")
    public String registerPage(){
        return "register";
    }


    @RequestMapping("/page/login")
    public String login(){
        return "login";
    }


    @RequestMapping("/admin/home")
    public String adminHome(){
        return "admin/home";
    }

    @RequestMapping("/admin/left")
    public String adminLeft(){
        return "admin/left";
    }

    @RequestMapping("/admin/right")
    public String adminRight(){
        return "admin/right";
    }

    @RequestMapping("/admin/center")
    public String adminCenter(){
        return "admin/center";
    }


}
